package com.situ.day10;

public enum Color {
    //public static final Color RED = new Color();
    //RED, GREEN, BLUE
    RED("#FF0000"),  // new Color("#FF0000")
    GREEN("#00FF00"),
    BLUE("#0000FF");

    private final String hexCode;

    //枚举里面构造方法私有
    private Color(String hexCode) {
        this.hexCode = hexCode;
    }

    public String getHexCode() {
        return hexCode;
    }
}
